Layered queueing network